package com.wang.project.utils;

import com.wang.project.model.entity.User;

public class UserHolder {
    private static final ThreadLocal<User> t = new ThreadLocal<User>();

    public static void saveUser(User user) {
        t.set(user);
    }

    public static User getUser() {
        return t.get();
    }


    public static void removeUser() {
        t.remove();
    }
}
